package cn.yunyichina.utils.log.constant;

/**
 * Created by kevin on 2017/12/4.
 * 3位数字表示一种场景，场景最小数字为100，开始递增
 */
public enum LogScene {

    //-----------------------------------------------------------------------------
    REGISTER                                   ("100","挂号"),
    REGISTER_DOCTOR_SOURCE                     ("100100","挂号_获取号源"),
    REGISTER_DOCTOR_TIME                       ("100101","挂号_获取分时"),
    REGISTER_DOCTOR_LOCK                       ("100102","挂号_医生锁号"),
    REGISTER_DOCTOR_UNLOCK                     ("100103","挂号_解锁号源"),
    REGISTER_CUR_ORDER                         ("100104","挂号_挂号写单"),
    REGISTER_RESERVE                        ("100105","挂号_预约取号"),
    REGISTER_INSURANCE                     ("100106","挂号_挂号医保"),
    REGISTER_REFUND                     ("100107","挂号_挂号取消"),
    REGISTER_STOP                     ("100108","挂号_停诊"),
    REGISTER_REPLACE                     ("100109","挂号_替诊"),
    REGISTER_CHANGE                     ("100110","挂号_改诊"),
    REGISTER_RESERVE_AUTOTAKE                        ("100109","挂号_自动取号"),
    //------------------------------------------------------------------------------

    //------------------------------------------------------------------------------
    CLINIC                                     ("101","门诊"),
    //------------------------------------------------------------------------------

    //------------------------------------------------------------------------------
    PAY                                        ("102","支付"),
    PAY_ALIPAY                                 ("102100","支付_支付宝支付"),
    PAY_ALIPAY_WAPPAY                          ("102100100","支付_支付宝支付_手机网页支付"),
    PAY_WECHAT                                 ("102101","支付_微信支付"),
    PAY_ORIGIN_REFUND                          ("102201","支付_原渠道退费"),
    PAY_REFUND_UNIFIED                         ("102202","支付_统一退费"),
    //--------------------------------------------------------------------------------

    PERSONAL                                   ("103","个人中心"),
    BED                                        ("104","住院出院"),
    ORIGIN_REFUND                              ("105","原渠道退费"),
    MSG                                        ("106","消息推送"),
    MSG_TMP                                    ("106100","消息推送_模板消息"),
    MSG_IMG                                    ("106101","消息推送_图文消息"),
    MSG_TXT                                    ("106102","消息推送_文本消息"),
    MSG_JPUSH                                  ("106103","消息推送_极光推送"),

    //--------------------------------------------------------------------------------
    EXCEPTION_ORDER                            ("107","异常订单处理"),
    EXCEPTION_ORDER_FILTER                     ("107100","异常订单处理_过滤处理"),
    EXCEPTION_ORDER_FILTER_REGISTER            ("107100100","异常订单处理_过滤处理_挂号"),
    EXCEPTION_ORDER_FILTER_CLINIC              ("107100101","异常订单处理_过滤处理_门诊"),
    EXCEPTION_ORDER_FILTER_BED                 ("107100102","异常订单处理_过滤处理_住院出院"),
    EXCEPTION_ORDER_REFUND                     ("107101","异常订单处理_退费处理"),
    //--------------------------------------------------------------------------------

    //--------------------------------------------------------------------------------
    PROXY                                       ("108","开放性接口网关"),
    //--------------------------------------------------------------------------------
    //--------------------------------------------------------------------------------
    NOTIFY                                      ("109","开放性回调网关"),
    //--------------------------------------------------------------------------------

    //--------------------------------------------------------------------------------
    MERCHANT                                    ("110","商户对接系统"),
    MERCHANT_MESSAGE_NOTIFY                     ("110100","商户对接系统_商户消息通知"),
    MERCHANT_MESSAGE_BUSINESSCALL               ("110101","商户对接系统_业务调用"),
    //--------------------------------------------------------------------------------
    PBM                                         ("111","用于PBM外购单系统"),
    ;

    private String code;

    private String desc;

    LogScene(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }
}
